package com.yunshang.shoppingmall.service.impl;

import com.yunshang.shoppingmall.entity.ProductSalesStatistics;
import com.yunshang.shoppingmall.mapper.ProductSalesStatisticsMapper;
import com.yunshang.shoppingmall.service.ProductSalesStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductSalesStatisticsServiceImpl implements ProductSalesStatisticsService {
    @Autowired
    ProductSalesStatisticsMapper productSalesStatisticsMapper;
    @Override
    public int insert(ProductSalesStatistics record) {
        return productSalesStatisticsMapper.insert(record);
    }

    @Override
    public int insertSelective(ProductSalesStatistics record) {
        return productSalesStatisticsMapper.insertSelective(record);
    }

    @Override
    public List<ProductSalesStatistics> selectAll(String supplier, String newpr) {
        return productSalesStatisticsMapper.selectAll(supplier,newpr);
    }

}
